package io.geekidea.boot.outboundBenhavior.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.geekidea.boot.framework.page.Paging;
import io.geekidea.boot.otherstores.query.total;
import io.geekidea.boot.outboundBenhavior.dto.OutboundBenhaviorDto;
import io.geekidea.boot.outboundBenhavior.entity.OutboundBehavior;
import io.geekidea.boot.outboundBenhavior.query.OutboundBenhaviorQuery;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 数据访问层
 */

public interface OutboundBenhaviorMapper extends BaseMapper<OutboundBehavior> {


    List<OutboundBehavior> getOutBehList(OutboundBenhaviorQuery outboundBenhaviorQuery);

    total getTotal(OutboundBenhaviorQuery outboundBenhaviorQuery);


    @Select("select *  from tb_outbound_behavior where id = #{id};")
    OutboundBehavior getOutBhe(Integer id);

    int addOutBeh(OutboundBenhaviorDto outboundBenhaviorDto);

    int updateOutbeh(OutboundBehavior outboundBehavior);
}
